import request from '@/router/axios'

/**
 * 通过课题成果ID获取基本信息
 * @param {*} id
 * add by yxq
 */
export function getAchievementDetail (achievementId) {
  return request({
    url: " /planning/achievement/" + achievementId + "/detail",
    method: 'get',
  })
}

/**
 * 通过课题成果ID获取编制信息
 * @param achievementId
 * @returns {*}
 */
export function getMakeDetail (achievementId) {
  return request({
    url: " /planning/achievement/" + achievementId + "/make/detail",
    method: 'get',
  })
}

/**
 * 通过课题成果ID获取立项登记信息
 * @param achievementId
 * @returns {*}
 */
export function getRegisterDetail (achievementId) {
  return request({
  url: " /planning/achievement/" + achievementId + "/register/detail",
    method: 'get',
  })
}

/**
 * 通过课题成果ID获取审批信息
 * @param achievementId
 * @returns {*}
 */
export function getReviewDetail (achievementId) {
  return request({
    url: " /planning/achievement/" + achievementId + "/review/detail",
    method: 'get',
  })
}

/**
 * 通过课题成果ID获取修订信息
 * @param achievementId
 * @returns {*}
 */
export function getReviseDetail (achievementId) {
  return request({
    url: " /planning/achievement/" + achievementId + "/revise/detail",
    method: 'get',
  })
}

/**
 * 根据成果id查询前期研究相关信息
 * @param achievementId
 * @returns {*}
 */
export function getSubjectDetail (achievementId) {
  return request({
    url: " /planning/achievement/" + achievementId + "/subject/detail",
    method: 'get',
  })
}
